#ifndef _SPLINE_COUNTER_H_
#define _SPLINE_COUNTER_H_

#include "counter.h"		// macros
#include "math/vec2.h"

namespace math
{
///////////////////////////////////////////////////////
///	\brief	Counter class that feeds back the result from a spline
///////////////////////////////////////////////////////
class SplineCounter : public Counter
{
public:
	SplineCounter(float	CountLimit = 0.0f);
	virtual			~SplineCounter();
	float			GetSpline();
	float			GetSpline(float Progress);
	void			SetSplineData(int Index, float Val);
protected:
	static const int		SPLINE_C = 4;
	math::Vec2				m_SplineA[SPLINE_C];
};


} // namespace math

#endif // _SPLINE_COUNTER_H_